package com.yu1996.gulimall.product.feign;

import java.util.List;
import java.util.Map;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-gateway")
public interface WareFeignService {

  /** 查看是否还有库存 */
  @PostMapping("api/ware/waresku/hasstock")
  public Map<Long, Long> getSkusHasStock(@RequestBody List<Long> skuIds);
}
